home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
gnuish
/
mkinf10
/
make.inc
< prev
next >
Wrap
Text File
|
1990-11-01
|
1KB
|
69 lines
# make.inc - General purpose targets for makefiles -*-Text-*-
# Copyright (C) 1990 by Thorsten Ohl, td12@ddagsi3.bitnet
# $Header$
#
# This library of targets contains fairly standard idioms
# for makefile (but they seem not yet ripe enough to become
# hard coded defaults).
#
# Maintaing backups in a .zip archive and on floppy disk.
#
# entry points:
# zip, disk
#
# required macros:
# ZIPFILE: name of the zip file (without suffix)
# DISK: letter of the disk on which the backup lives
# RCSFILES: files living in RCS (w/o prefix)
# MISC: more files
ifdef ZIPFILE
.PHONY: zip
zip: $(ZIPFILE).zip
ifdef RCSFILES
$(ZIPFILE).zip: $(addprefix RCS/, $(RCSFILES)) $(MISC)
else
$(ZIPFILE).zip: $(MISC)
endif
pkzip -r- -P $@ $?
ifdef DISK
.PHONY: disk
disk: $(DISK):/$(ZIPFILE).zip
$(DISK):/$(ZIPFILE).zip: $(ZIPFILE).zip
cp -f $< $@
pkunzip -t $@ | grep -vw OK
endif # DISK
endif # ZIPFILE
#
# Creating .tar files:
%.tar:
tar -cf $@ $^
# Compressing .tar files for mailing
%.uue: %.tar
compress < $< | uuencode $<.Z > $@
#
# Local Variables:
# mode:Text
# ChangeLog:ChangeLog
# compile-command:make
# End: